﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace ApplicationLayer
{
    public class GamePiece //5x5
    {
        public List<Point> points = new List<Point>();
        public GamePiece()
        {
            points = new List<Point>(); //X Column, Y row
        }

        public void SavePiece()
        {
        }

        public GamePiece(params int[] coords)
        {
            for (int ct = 0; ct < coords.Length; ct += 2)
            {
                points.Add(new Point(coords[ct], coords[ct + 1]));
            }
        }

        public GamePiece getCopy()
        {
            GamePiece gp = new GamePiece();
            foreach (Point p in this.points)
                gp.points.Add(p);
            return gp;
        }
    }
}
